{% load static %}
<div class="whitebg tuijian">
    <h2 class="htitle">站长推荐</h2>
    {% if recommend_list %}
    <section class="topnews imgscale"><a href="{% url 'blog:article' recommend_list.0.article.id %}" target="_blank"><img src="{{ recommend_list.0.article.img.url }}"><span>{{ recommend_list.0.article.title }}</span></a></section>
    {% endif %}
    <ul>
        {% for recommend in recommend_list|slice:"1:" %}
            <li><a href="{% url 'blog:article' recommend.article.id %}" target="_blank"><i><img src="{{ recommend.article.img.url }}"></i>
            <p>{{ recommend.article.title }}</p>
            </a></li>
        {% endfor %}
    </ul>
</div>